package com.app.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: cnprinces
 * Date: 13-1-25
 * Time: 上午11:26
 * To change this template use File | Settings | File Templates.
 */

/**
 * 商品信息表 todo:应该还要对应一张库存表。记录最低库存 现有库存
 */
@Entity
@Table(name = "Goods_Info")
public class Goods_Info {
    @Id
    @GenericGenerator(name = "Goods_InfoGenerator", strategy = "native") //这个是hibernate的注解
    @GeneratedValue(generator = "Goods_InfoGenerator") //使用uuid的生成策略
    private Integer id;
    private Integer typeId;  //商品类型的id
    private Integer typeParentId;  //商品类型的id
    private Integer goodsCount;  //商品数量
    private Integer goodsMinCount;  //商品最低数量  低于这个要预警
    private Integer inventoryStatus;  //是否关联库存 0关联，1 不关联
    private Integer goodsStatus;  //是否为赠品         0需要客户取走的，1 消耗品
    private Double goodsBuyPrice;  //商品买入价格
    private Double goodsSellPrice;  //商品卖出价格
    private String goodsName; //商品名称
    private String goodsNo;//商品编号
    private String goodsSize;//商品尺寸
    private String goodsUnit;//商品单位

    //相册的属性
    private Integer goodsPhotoCount;  //入册的数量
    private String goodsDescribe;  //描述
    private Date createDate;//创建时间
    private Integer inputId;//录入人
    private String inputName;//录入人


    public Integer getInputId() {
        return inputId;
    }

    public void setInputId(Integer inputId) {
        this.inputId = inputId;
    }

    public String getInputName() {
        return inputName;
    }

    public void setInputName(String inputName) {
        this.inputName = inputName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getTypeParentId() {
        return typeParentId;
    }

    public void setTypeParentId(Integer typeParentId) {
        this.typeParentId = typeParentId;
    }

    public Integer getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    public Integer getGoodsMinCount() {
        return goodsMinCount;
    }

    public void setGoodsMinCount(Integer goodsMinCount) {
        this.goodsMinCount = goodsMinCount;
    }

    public Integer getInventoryStatus() {
        return inventoryStatus;
    }

    public void setInventoryStatus(Integer inventoryStatus) {
        this.inventoryStatus = inventoryStatus;
    }

    public Integer getGoodsStatus() {
        return goodsStatus;
    }

    public void setGoodsStatus(Integer goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public Double getGoodsBuyPrice() {
        return goodsBuyPrice;
    }

    public void setGoodsBuyPrice(Double goodsBuyPrice) {
        this.goodsBuyPrice = goodsBuyPrice;
    }

    public Double getGoodsSellPrice() {
        return goodsSellPrice;
    }

    public void setGoodsSellPrice(Double goodsSellPrice) {
        this.goodsSellPrice = goodsSellPrice;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getGoodsSize() {
        return goodsSize;
    }

    public void setGoodsSize(String goodsSize) {
        this.goodsSize = goodsSize;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public Integer getGoodsPhotoCount() {
        return goodsPhotoCount;
    }

    public void setGoodsPhotoCount(Integer goodsPhotoCount) {
        this.goodsPhotoCount = goodsPhotoCount;
    }

    public String getGoodsDescribe() {
        return goodsDescribe;
    }

    public void setGoodsDescribe(String goodsDescribe) {
        this.goodsDescribe = goodsDescribe;
    }
}
